projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6fbbcfd
)
imx: mx7dsabresd: reset ENET_RST_B
author
Peng Fan
<
[email protected]
>
Thu, 13 Apr 2017 06:09:58 +0000
(14:09 +0800)
committer
Stefano Babic
<
[email protected]
>
Thu, 18 May 2017 09:24:34 +0000
(11:24 +0200)
Reset ENET_RST_B to make ENET function stable.
Since DM_GPIO enabled, we use "gpio_spi@0_5" which corresponds
to ENET_RST_B.
Signed-off-by: Peng Fan <
[email protected]
>
Cc: Stefano Babic <
[email protected]
>
board/freescale/mx7dsabresd/mx7dsabresd.c
patch
|
blob
|
history
diff --git
a/board/freescale/mx7dsabresd/mx7dsabresd.c
b/board/freescale/mx7dsabresd/mx7dsabresd.c
index d6ba364152aafe8cae118ae5d6a69160d373bb54..f7a5f0d51307956fe871f71ade6b4d773916e693 100644
(file)
--- a/
board/freescale/mx7dsabresd/mx7dsabresd.c
+++ b/
board/freescale/mx7dsabresd/mx7dsabresd.c
@@
-232,6
+232,23
@@
int mmc_map_to_kernel_blk(int dev_no)
int board_eth_init(bd_t *bis)
{
int ret;
+ unsigned int gpio;
+
+ ret = gpio_lookup_name("gpio_spi@0_5", NULL, NULL, &gpio);
+ if (ret) {
+ printf("GPIO: 'gpio_spi@0_5' not found\n");
+ return -ENODEV;
+ }
+
+ ret = gpio_request(gpio, "fec_rst");
+ if (ret && ret != -EBUSY) {
+ printf("gpio: requesting pin %u failed\n", gpio);
+ return ret;
+ }
+
+ gpio_direction_output(gpio, 0);
+ udelay(500);
+ gpio_direction_output(gpio, 1);
setup_iomux_fec();